﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Linq.Mapping;

namespace QuanLyPhongMach.Model
{
    [Table(Name="ChiTietKhamBenh")]
    public class CChiTietKhamBenh
    {
        #region Properties
        [Column(Name = "MaChiTietKhamBenh", IsPrimaryKey = true)]
        public int MaChiTietKhamBenh { get; set; }

        [Column(Name = "MaKhamBenh")]
        public int MaKhamBenh { get; set; }

        [Column(Name = "MaThuoc")]
        public int MaThuoc { get; set; }

        [Column(Name = "MaDonVi")]
        public int MaDonVi { get; set; }

        [Column(Name = "MaCachDung")]
        public int MaCachDung { get; set; }

        [Column(Name = "SoLuong")]
        public int SoLuong { get; set; }

        [Column(Name = "DonGiaBan")]
        public int DonGiaBan { get; set; }
        #endregion

        #region Constructor
        public CChiTietKhamBenh()
        { 
        }

        public CChiTietKhamBenh(int makhambenh, int mathuoc, int madonvi, int macachdung, int soluong, int dongiaban)
        {
            Initialize(makhambenh, mathuoc, madonvi, macachdung, soluong, dongiaban);
        }

        public void Initialize(int makhambenh, int mathuoc, int madonvi, int macachdung, int soluong, int dongiaban)
        {
            this.MaKhamBenh = makhambenh;
            this.MaThuoc = mathuoc;
            this.MaDonVi = madonvi;
            this.MaCachDung = macachdung;
            this.SoLuong = soluong;
            this.DonGiaBan = dongiaban;
        }
        #endregion
    }
}
